#ifndef SYSCLIENT_H
#define SYSCLIENT_H

#include <QMainWindow>
#include <main.h>
#include <QTcpServer>
#include <QTcpSocket>
namespace Ui {
class sysclient;
}

class sysclient : public QMainWindow
{
    Q_OBJECT

public:
    explicit sysclient(QWidget *parent = 0);
    ~sysclient();

private slots:
    void on_pushButtonconnect_clicked();
    void Server_connectSucceed();
    void read_ServerData();
    void on_sendbtn_clicked();
    void mousePressEvent(QMouseEvent *event);
    void mouseMoveEvent(QMouseEvent *event);
    void mouseReleaseEvent(QMouseEvent *event);
    void on_exitbtn_clicked();

private:
    Ui::sysclient *ui;
    QTcpSocket  *tcpSocket;
    QTcpServer  *tcpServer;
    //=======================鼠标拖动==============
    bool m_dragging;
    QPoint m_lastPos;
//    quint32      *state;
};

#endif // SYSCLIENT_H
